<script>
	import { mapState} from "vuex"
	export default {
		computed:{
			...mapState('user', ['userInfo'])
		},
		onLaunch: function(options) {
			let {path} = options
			if(this.userInfo && path == 'pages/login/login') {
				uni.switchTab({
				    url: '/pages/tabbar/list'
				});
			}
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/* 自定义图标库 */
	@import './common/iconfont.css';
	/*每个页面公共css */
</style>
